package day11;

public class EnumTest {
	public static void main(String[] args) {
		carColor c1;
		c1 = carColor.black;
		System.out.println("c1的值：" + c1);
		c1 = carColor.blue;
		switch (c1) {
		case red:
			System.out.println("c1的颜色是红色");
			break;
		case black:
			System.out.println("c1的颜色是黑色");
			break;
		case blue:
			System.out.println("c1的颜色是蓝色");
			break;
		default:
			break;
		}
	}
}
